#include "CPolygon.h"

CPolygon::CPolygon (int a)
{
	width=a;
}
void CPolygon::setValues (int a, int b)
{
	width=a;
	height=b;
}
CRectangle::CRectangle (int w, int h):CPolygon(w)
{
	height=h;
}
int CRectangle::area()
{
	return (width*height);
}